package com.spring.mvc.mapper;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import com.spring.mvc.pojo.News;

@Repository
public interface NewsMapper {

	@Select("select * from t_news t where t.id=#{id}")
	public News getById(int id);

}
